//
//  YSFeedbackCell.m
//  Yueshi
//
//  Created by Northwan on 15/8/7.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import "YSFeedbackCell.h"
#import "YSFeedbackItemView.h"
@interface YSFeedbackCell ()
@property (strong, nonatomic)YSFeedbackItemView *itemView;
@end

@implementation YSFeedbackCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"YSFeedbackCell";
    YSFeedbackCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[YSFeedbackCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ID];
        [cell setBackgroundColor:[UIColor clearColor]];
    }
    return cell;
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        YSFeedbackItemView *itemView =  [[YSFeedbackItemView alloc]init];
        self.itemView = itemView;
        [self addSubview:itemView];
        
    }
    return self;      
}

-(void)setItemFrame:(YSFeedbackItemFrame *)itemFrame{
    _itemFrame = itemFrame;
    _itemView.itemFrame = itemFrame;
}

@end
